<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div id="main">
		<div class="sidebar">
			<ul>
				<li class="hd">			
				<h2><s:property value="leftTopChannel.channelName"/></h2>
				</li>									
				<s:iterator var="channel" value="channelsList" status="st">
			 	<s:if test="#channel.channelId.equals(newsTopChannel.channelId)">
				    <li class="on">
				<a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="#channel.channelId"/>"><s:property value="#channel.channelName"/></a>
				</li>        
				 </s:if>
				 <s:else>
				<li>
				<a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="#channel.channelId"/>"><s:property value="#channel.channelName"/></a>
				</li>
				</s:else>
				</s:iterator>

			</ul>
		</div>
		<div class="subcon">
			<div class="listhd">
		             	<s:property value='newsTopChannel.channelName'/>
			</div>
			<div class="listbd">
				<ul>
				
				<s:iterator value="newsList" var="news">
				<li>
				<div class="img"><a  href="<%=path%>/yc/news/ycnews!news.do?contentId=<s:property value="#news.contentId"/>&channelId=<s:property value="#news.channelId"/>"   title="<s:property value="#news.contentName"/>">
				                              <img height="25px" width="25px" src="<%=path %>/yc/channel/ycchannel!image.do?rid=<s:property value="#news.contentIcon"/>" ></a></div>
				<a  href='<%=path %>/yc/news/ycnews!news.do?contentId=<s:property value="#news.contentId"/>&channelId=<s:property value="#news.channelId"/>'>
				<s:property value="#news.contentName"/></a>
				
				<span class="date"><s:property value="#news.createdDate"/></span>
				</li>
				</s:iterator>
					
				</ul>
			</div>
			<div class="page">
				<ul>
				<li>共查询出&nbsp;<s:property value="pageCtrl.resultCount"/>条&nbsp;</li>
				<li>每页<span style="color:red" ><s:property value="pageCtrl.pageSize"/></span>条</li>&nbsp;&nbsp;
				<li>页次：第<span style="color:red" ><s:property value="pageCtrl.pageNo+1"/></span>页&nbsp;&nbsp;</li>
				<li>共<span style="color:red"><s:property value="pageCtrl.pageCount"/></span>页&nbsp;</li>
			          
			          <s:if test="pageCtrl.pageNo==0">
			          	<li>
			          首页&nbsp;&nbsp;
			          <li>上页&nbsp;&nbsp;</li>
			          </s:if>
			          <s:else>
			          
			                <li><a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>"><span style="color:red">首页</span></a>&nbsp;&nbsp;</li>
			                <li><a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>&pageNo=<s:property value="pageCtrl.pageNo-1"/>"><span style="color:red">上页</span></a>&nbsp;&nbsp;</li>
			          </s:else>
			          <s:if test="pageCtrl.pageCount==0||pageCtrl.pageNo+1==pageCtrl.pageCount">
			         	<li> 下页&nbsp;&nbsp;</li>
			         	<li>末页&nbsp;&nbsp;</li>
			          </s:if>
			          <s:else>
			         <li> <a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>&pageNo=<s:property value="pageCtrl.pageNo+1"/>"><span style="color:red">下页</span></a>&nbsp;&nbsp;</li>
			         <li> <a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>&pageNo=<s:property value="pageCtrl.pageCount-1"/>"><span style="color:red">末页</span></a>&nbsp;&nbsp;</li>
			          </s:else>
				
				</ul>
			</div>
		</div>
	</div>


